MakeNomencl macro for WinEdt 7

 The main file, MakeNomencl.edt goes into WinEdt 7\Exec\TeX\ directory. Some Winedt files need to be updated:

Erase Working Files.edt that goes into WinEdt 7\Exec\  directory

Create WinEdt Filetypes.edt and Remove WinEdt Filetypes.edt that both go into WinEdt 7\WinShell\ directory

The icons Nls.png, FileNLS.png go into WinEdt 7\Bitmaps\Images\ directory.

The icon nls.ico goes into WinEdt 7\WinShell\Icons\ directory.

The associations to these files need to be added to the configuration files. One may either use my configuration files MainMenu.ini, Toolbar.ini or modify one's own files as explained below. The files *.ini location depends on the Windows version and on a choice during the WinEdt installation. For Windows 7 case they are most likely in c:\Users\<your name>\AppData\Roaming\WinEdt Team\WinEdt 7\ConfigEx\ folder. If not found there, search your hard disk.

 

In the case one wants to keep his own customizations, the following macros should be defined in MainMenu.ini . First, include the item "Make Nomenclature" into the TeX menu:

    ITEM="Make_Nomenclature"

    CAPTION="Make &Nomenclature"

    IMAGE="Nls"

    MACRO="Exe('%b\Exec\TeX\MakeNomencl.edt');"

    REQ_FILTER=`%O\%N.nlo*"%!M=TeX"`+

   `|"%!M=TeX:INS"|"%!M=TeX:DTX"|"%!M=TeX:STY"|"%!M=TeX:AUX"`

To allow deleting  .nls file, one defines another macro:

  ITEM="$Erase_NLS_File"

    CAPTION="Erase NLS File"

    IMAGE="FileNLS"

    MACRO="IfFileExists('%O\%N.nls',!'CloseFile(|%O\%N.nls|,1);"+

          "DeleteFile(|%O\%N.nls|);UpdateStatus;');"

    REQ_FILTER=:"%!M=TeX"*%O\%N.nls

 

The file Toolbar.ini modifications:

Include the icon of the Make_Nomenclature call. It may be put into tool bar close to make index

...

  BUTTON="Make_Index"

  BUTTON="Make_Nomenclature"

...

Add the $Erase_NLS_File call to the menu "Erase_Output_Files":

  BUTTON="Erase_Output_Files"

    TYPE=6

    MENU="Erase_Output_Files"

...

    MENU="$Erase_NLS_File"

...